package com.qianli.cashmama.trade.dao;

import com.fqgj.common.base.BaseMapper;
import com.qianli.cashmama.trade.entity.TRiskInfoEntity;

import java.util.List;

/**
 * User: sm
 * Date: 2017-07-21
 * Time: 09:10:21.142
 */

public interface TRiskInfoDao extends BaseMapper<TRiskInfoEntity> {
    /**
     * @param tradeNo
     * @return
     */
    List<TRiskInfoEntity> selectListByTradeNo(String tradeNo);

    /**
     * 方法名中的为联合主键
     *
     * @param tRiskInfoEntity
     * @return
     */
    Integer updateByTradeNoAndType(TRiskInfoEntity tRiskInfoEntity);


    /**
     * @param tradeNo
     * @param type
     * @return
     */
    TRiskInfoEntity selectOneByTradeNoAndType(String tradeNo, int type);
}